import java.text.DecimalFormat;
import java.text.NumberFormat;

import javax.swing.*;

public class AuctionComponentUI {

	private JLabel playerNameLabel;
	private JFormattedTextField bidTextField;
	private Player componentOwner;
	

	public AuctionComponentUI(String playerName) {
		
		DecimalFormat df = new DecimalFormat("##############");
		this.playerNameLabel = new JLabel(playerName);
		this.bidTextField = new JFormattedTextField(df);
		
	}
	
	//getter
	public JLabel getPlayerNameLabel() {
		return playerNameLabel;
	}
	public JFormattedTextField getBidTextField() {
		return bidTextField;
	}
	public Player getComponentOwner() {
		return componentOwner;
	}
	
	
	//setter
	public void setPlayerNameLabel(JLabel playerNameLabel) {
		this.playerNameLabel = playerNameLabel;
	}
	public void setBidTextField(JFormattedTextField bidTextField) {
		this.bidTextField = bidTextField;
	}
	public void setComponentOwner(Player componentOwner) {
		this.componentOwner = componentOwner;
	}
	
}
